package com.zzj.ecology.commons.exception;

/**
 * @ClassName TgfException
 * @Description TODO
 * @Author zhijun zeng at 0:15 2020/5/30
 * @Version 1.0
 **/
public class TgfException extends RuntimeException {

    private int code;
    private String msg;

    public TgfException() {
        super();
    }

    public TgfException(String message) {
        super(message);
    }

    public TgfException(String message, int code) {
        super(message);
        this.code = code;
        this.msg = message;
    }

    public TgfException(String message, Throwable cause) {
        super(message, cause);
    }

    public TgfException(Throwable cause) {
        super(cause);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
